{template "mheader.html"}


<div class="portlet light ">
    <div class="portlet-title tabbable-line">
        <ul class="nav nav-tabs" style="float:left;">
            {loop $module_memu $i $t}
            <li class="{if $mcid==$i}active{/if}">
                <a href="{$t.url}"> <i class="{$t.icon}"></i> {$t.name} </a>
            </li>
            {/loop}
        </ul>
    </div>
    <div class="portlet-body">




        <form class="form-horizontal" role="form" id="myform">
            {dr_form_hidden()}
            <div class="table-scrollable">
                <table class="table table-striped table-bordered table-hover table-checkable dataTable">
                    <thead>
                    <tr class="heading">
                        <th class="myselect">
                            <label class="mt-table mt-checkbox mt-checkbox-single mt-checkbox-outline">
                                <input type="checkbox" class="group-checkable" data-set=".checkboxes" />
                                <span></span>
                            </label>
                        </th>
                        <th width="80" style="text-align: center" class="{dr_sorting('type')}" name="type">{dr_lang('类型')}</th>
                        <th class="{dr_sorting('title')}" name="title">{dr_lang('主题')}</th>
                        <th width="80"  style="text-align: center" class="{dr_sorting('buy_num')}" name="buy_num">{dr_lang('购买数')}</th>
                        <th width="320" class="{dr_sorting('stime')}" name="stime">{dr_lang('有效期')}</th>
                        <th>{dr_lang('操作')}</th>
                    </tr>
                    </thead>
                    <tbody>
                    {loop $list $t}
                    <tr class="odd gradeX" id="dr_row_{$t.id}">
                        <td class="myselect">
                            <label class="mt-table mt-checkbox mt-checkbox-single mt-checkbox-outline">
                                <input type="checkbox" class="checkboxes" name="ids[]" value="{$t.id}" />
                                <span></span>
                            </label>
                        </td>
                        <td style="text-align: center"><span class="label label-default"> {$ptype[$t.type]} </span></td>
                        <td>{Function_list::title($t.title, $param)}</td>
                        <td style="text-align: center">{$t.buy_num}</td>
                        <td>{dr_date($t.stime, null, 'red')} ~ {dr_date($t.etime, null, 'red')}</td>
                        <td>
                            <label><a href="{dr_member_url($uriprefix.'/edit', ['id'=>$t.id])}" class="btn btn-xs green"> <i class="fa fa-edit"></i> {dr_lang('修改')}</a></label>
                        </td>
                    </tr>
                    {/loop}
                    </tbody>
                </table>
            </div>

            <div class="row fc-list-footer table-checkable ">
                <div class="col-md-5 fc-list-select">
                    <label class="mt-table mt-checkbox mt-checkbox-single mt-checkbox-outline">
                        <input type="checkbox" class="group-checkable" data-set=".checkboxes" />
                        <span></span>
                    </label>
                    <button type="button" onclick="dr_ajax_option('{dr_member_url($uriprefix.'/del')}', '{dr_lang('你确定要删除它们吗？')}', 1)" class="btn red btn-sm"> <i class="fa fa-trash"></i> {dr_lang('删除')}</button>

                </div>
                <div class="col-md-7 fc-list-page">
                    {$mypages}
                </div>
            </div>
        </form>

    </div>
</div>
{template "mfooter.html"}